<?php
include "../DBConfig.class.php";
	$timestamp = date("Y-m-d H:i:s", time());
	$link = mysql_connect(DBConfig::$databaseHostname,DBConfig::$databaseUsername,DBConfig::$databasePassword);
	
		if(mysql_select_db(DBConfig::$databaseName))
	{
		echo "passed\n";
		
	}else{
		echo "failed\n";
	}
	
	$sql = "INSERT INTO `gthai_layer` (`name`, `icon`, `link`, `detail`, `cr_date`, `lu_date`) VALUES
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/caution.png', 'http://www.911thai.com/feed/', '', '2011-01-10 15:32:10', '$timestamp'),
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/caution.png', 'http://www.911thai.com/feed/', '', '0000-00-00 00:00:00', '$timestamp'),
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/caution.png', 'http://www.911thai.com/feed/', '', '2011-01-10 15:32:43', '$timestamp'),
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/caution.png', 'http://www.911thai.com/feed/', '', '2011-01-10 15:32:45', '$timestamp'),
( 'www.thaiflood.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/water.png', 'http://maps.google.co.th/maps/ms?hl=en&ie=UTF8&source=embed&msa=0&output=georss&msid=108663478994178951894.000493178832cb5584dc0', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.thaiflood.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/shopping.png', 'http://maps.google.com/maps/ms?hl=en&ie=UTF8&source=embed&msa=0&output=georss&msid=108663478994178951894.000493099c3cea1c38143', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.thaiflood.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/hospitals.png', 'http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=3&jsv=302d&msa=0&output=georss&msid=105963700385024613540.0004940c4671e6b760abc', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.thaiflood.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/movies.png', 'http://maps.google.com/maps/ms?ie=UTF8&hl=en&source=embed&msa=0&output=georss&msid=109261647619174335009.000492e56b7863b0ebfb7', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/caution.png', 'http://maps.google.com/maps/ms?ie=UTF8&hl=th&msa=0&output=georss&msid=105963700385024613540.0004940c4671e6b760abc', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/shopping.png', 'http://maps.google.com/maps/ms?ie=UTF8&hl=th&msa=0&output=georss&msid=105963700385024613540.00049410db4463bca9eae', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.thaiflood.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/rangerstation.png', 'http://help.thaiflood.com/feed/?c=10', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/caution.png', 'http://www.votethailand.com/data/flood/sample/georss.xml', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.911thai.com', 'http://maps.gstatic.com/intl/th_ALL/mapfiles/ms/micons/caution.png', 'http://www.911thai.com/feed/', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.thaiflood.com', 'http://help.thaiflood.com/media/uploads/category_10_1287912166.png', 'http://help.thaiflood.com/feed/?c=10', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.thaiflood.com', 'http://help.thaiflood.com/media/uploads/category_11_1287912312.png', 'http://help.thaiflood.com/feed/?c=11', '', '2011-01-10 17:20:25', '$timestamp'),
( 'www.thaiflood.com', 'http://help.thaiflood.com/media/uploads/category_13_1287913476.png', 'http://help.thaiflood.com/feed/?c=27', '', '2011-01-10 17:20:25', '$timestamp');";

	$result = mysql_query($sql,$link)or die();
	if($result)
	{
		echo "passed";
		
	}else{
		echo "failed";
	}

	?>